<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePhaseRelationsTable extends Migration {

    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('phase_relations',function(Blueprint $table){
            $table->increments('id');      //阶段关系表标识
            $table->unsignedInteger('investor_id')->nullable();   //投资人标识id
            $table->unsignedInteger('org_id')->nullable();  //投资机构标识id
            $table->unsignedInteger('phase_id')->nullable();      //阶段标识
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('phase_relations');
    }

}
